﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="foreman_edit.aspx.cs" Inherits="DTcms.Web.admin.foreman.foreman_edit" ValidateRequest="false" %>
<%@ Import namespace="DTcms.Common" %>

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,initial-scale=1.0,user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<title>编辑工长</title>
<link href="../../scripts/artdialog/ui-dialog.css" rel="stylesheet" type="text/css" />
<link href="../skin/default/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="../../scripts/jquery/jquery-1.11.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/jquery/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/datepicker/WdatePicker.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/artdialog/dialog-plus-min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../scripts/webuploader/webuploader.min.js"></script>
<script type="text/javascript" charset="utf-8" src="../../editor/kindeditor-min.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/uploader.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/laymain.js"></script>
<script type="text/javascript" charset="utf-8" src="../js/common.js"></script>
<script type="text/javascript">
    $(function () {
        //初始化表单验证
        $("#form1").initValidform();

        //初始化编辑器
        var editor = KindEditor.create('.editor', {
            width: '100%',
            height: '350px',
            filterMode: false, //默认不过滤HTML
            resizeType: 1,
            uploadJson: '../../tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
            fileManagerJson: '../../tools/upload_ajax.ashx?action=ManagerFile',
            allowFileManager: true
        });
        var editorMini = KindEditor.create('.editor-mini', {
            width: '100%',
            height: '250px',
            filterMode: false, //默认不过滤HTML
            resizeType: 1,
            uploadJson: '../../tools/upload_ajax.ashx?action=EditorFile&IsWater=1',
            items: [
				'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
				'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
				'insertunorderedlist', '|', 'emoticons', 'image', 'link']
        });

        //初始化上传控件
        $(".upload-img").InitUploader({ sendurl: "../../tools/upload_ajax.ashx", swf: "../../scripts/webuploader/uploader.swf" });
    });
</script>
</head>

<body class="mainbody">
<form id="form1" runat="server">
<!--导航栏-->
<div class="location">
  <a href="user_list.aspx" class="back"><i></i><span>返回列表页</span></a>
  <a href="../center.aspx" class="home"><i></i><span>首页</span></a>
  <i class="arrow"></i>
  <a href="user_list.aspx"><span>工长管理</span></a>
  <i class="arrow"></i>
  <span>编辑工长</span>
</div>
<div class="line10"></div>
<!--/导航栏-->

<!--内容-->
<div id="floatHead" class="content-tab-wrap">
  <div class="content-tab">
    <div class="content-tab-ul-wrap">
      <ul>
        <li><a class="selected" href="javascript:;">基本资料</a></li>
      </ul>
    </div>
  </div>
</div>

<div class="tab-content">
  <dl>
    <dt>工长姓名</dt>
    <dd><asp:TextBox ID="txtNickName" runat="server" CssClass="input normal" datatype="*2-8" sucmsg=" "></asp:TextBox><span class="Validform_checktip">*工长的姓名，最多4个字</span></dd>
  </dl>
     <dl>
    <dt>上传头像</dt>
    <dd>
      <asp:TextBox ID="txtAvatar" runat="server" CssClass="input normal upload-path"></asp:TextBox>
      <div class="upload-box upload-img"></div>
    </dd>
  </dl>
    <dl>
    <dt>手机号码</dt>
    <dd><asp:TextBox ID="txtMobile" runat="server" CssClass="input normal" datatype="*11-11" nullmsg="请输入手机号码"></asp:TextBox><span class="Validform_checktip">*请输入手机号码</span></dd>
  </dl>
     <dl>
    <dt>从业年限</dt>
    <dd> <div class="rule-multi-radio">
        <asp:RadioButtonList ID="rblForeWork" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
        <asp:ListItem Value="1" Selected="True">1-3年</asp:ListItem>
        <asp:ListItem Value="2">3-5年</asp:ListItem>
        <asp:ListItem Value="3">5-10年</asp:ListItem>
        <asp:ListItem Value="4">10年以上</asp:ListItem>
        </asp:RadioButtonList>
      </div></dd>
  </dl>
    <dl>
    <dt>籍贯</dt>
    <dd><asp:TextBox ID="txtAddress" runat="server" CssClass="input normal"></asp:TextBox></dd>
  </dl>
   <dl>
    <dt>入驻时间</dt>
    <dd>
      <asp:TextBox ID="txtForeSettime" runat="server" CssClass="input rule-date-input" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})" datatype="/^\d{4}\-\d{1,2}\-\d{1,2}$/" errormsg="请选择正确的日期" sucmsg=" " />
        <span class="Validform_checktip">*请选择入驻时间</span>
    </dd>
  </dl>
     <dl>
    <dt>接待区域</dt>
    <dd><asp:TextBox ID="txtForeAreas" runat="server" CssClass="input normal"></asp:TextBox></dd>
  </dl>
     <dl>
      <dt>工长简介</dt>
      <dd>
        <textarea id="txtForeInfo" class="editor" style="visibility:hidden;" runat="server"></textarea>
      </dd>
    </dl>
      <dl>
      <dt>从业经历</dt>
      <dd>
        <asp:TextBox ID="txtForeExp" runat="server" CssClass="input" TextMode="MultiLine" datatype="*0-255" sucmsg=" "></asp:TextBox>
    </dl>
     <dl>
    <dt>身份认证</dt>
    <dd>
      <div class="rule-multi-radio">
        <asp:RadioButtonList ID="rblRenZheng" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
        <asp:ListItem Value="1" Selected="True">锤子认证</asp:ListItem>
        <asp:ListItem Value="2">非认证</asp:ListItem>
        </asp:RadioButtonList>
      </div>
    </dd>
  </dl>
    <dl>
    <dt>等级认证</dt>
    <dd>
      <div class="rule-multi-radio">
        <asp:RadioButtonList ID="rblForeLevel" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem Value="1" Selected="True">1星</asp:ListItem>
            <asp:ListItem Value="2">2星</asp:ListItem>
            <asp:ListItem Value="3">3星</asp:ListItem>
            <asp:ListItem Value="4">4星</asp:ListItem>
            <asp:ListItem Value="5">5星</asp:ListItem>
        </asp:RadioButtonList>
      </div>
    </dd>
  </dl>
    <dl>
    <dt>工地评级</dt>
    <dd>
      <div class="rule-multi-radio">
        <asp:RadioButtonList ID="rblForeGrade" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
        <asp:ListItem Value="1" Selected="True">优秀</asp:ListItem>
        <asp:ListItem Value="2">良好</asp:ListItem>
            <asp:ListItem Value="3">一般</asp:ListItem>
        </asp:RadioButtonList>
      </div>
    </dd>
  </dl>
    <dl >
      <dt>售后保障</dt>
      <dd>
        <div class="rule-multi-checkbox">
          <asp:CheckBoxList ID="cblForeSafe" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
            <asp:ListItem Value="1">质量保障</asp:ListItem>
            <asp:ListItem Value="2">工时保障</asp:ListItem>
            <asp:ListItem Value="3">测试保障</asp:ListItem>
          </asp:CheckBoxList>
        </div>
      </dd>
    </dl>
    <dl>
    <dt>是否推荐</dt>
    <dd>
      <div class="rule-multi-radio">
        <asp:RadioButtonList ID="rblForeIsRed" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
        <asp:ListItem Value="0" Selected="True">正常</asp:ListItem>
        <asp:ListItem Value="1">推荐</asp:ListItem>
        </asp:RadioButtonList>
      </div>
    </dd>
  </dl>
    <dl>
    <dt>是否置顶</dt>
    <dd>
      <div class="rule-multi-radio">
        <asp:RadioButtonList ID="rblForeIsTop" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
        <asp:ListItem Value="0" Selected="True">正常</asp:ListItem>
        <asp:ListItem Value="1">置顶</asp:ListItem>
        </asp:RadioButtonList>
      </div>
    </dd>
  </dl>
     <dl>
      <dt>排序数字</dt>
      <dd>
        <asp:TextBox ID="txtForeSort" runat="server" CssClass="input small" datatype="n" sucmsg=" ">99</asp:TextBox>
        <span class="Validform_checktip">*数字，越小越向前</span> </dd>
    </dl>
     <dl>
      <dt>
        信息来源
      </dt>
      <dd>
        <asp:TextBox ID="txtForeFrom" runat="server" CssClass="input normal"></asp:TextBox>
        <span class="Validform_checktip">*工长介绍、电话、内部介绍等等自己填写</span>
      </dd>
    </dl>

     <dl>
    <dt>工长状态</dt>
    <dd>
      <div class="rule-multi-radio">
        <asp:RadioButtonList ID="rblStatus" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
        <asp:ListItem Value="0" Selected="True">正常</asp:ListItem>
        <asp:ListItem Value="1">待验证</asp:ListItem>
        <asp:ListItem Value="2">待审核</asp:ListItem>
        <asp:ListItem Value="3">禁用</asp:ListItem>
        </asp:RadioButtonList>
      </div>
      <%--<span class="Validform_checktip">*禁用账户无法登录</span>--%>
    </dd>
  </dl>


</div>

<!--/内容-->

<!--工具栏-->
<div class="page-footer">
  <div class="btn-wrap">
    <asp:Button ID="btnSubmit" runat="server" Text="提交保存" CssClass="btn" onclick="btnSubmit_Click" />
    <input name="btnReturn" type="button" value="返回上一页" class="btn yellow" onclick="javascript:history.back(-1);" />
  </div>
</div>
<!--/工具栏-->

</form>
</body>
</html>
